package com.vegetable.modules.service.baseData;

import com.baomidou.mybatisplus.extension.service.IService;
import com.vegetable.common.utils.PageUtils;
import com.vegetable.modules.entity.baseData.ProductSpec;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品规格 服务类
 * </p>
 *
 * @author wangruijie
 * @since 2024-03-05
 */
public interface IProductSpecService extends IService<ProductSpec> {

    /**
     * 商品规格
     * @param params
     * @return
     */
    PageUtils queryPage(Map<String, Object> params);

    ProductSpec queryByProductId(String producerId, String specName);

    List<ProductSpec> queryByProductId(Long producerId);
    List<ProductSpec> queryByProductIds(List<Long> producerIds);
}
